package com.xunwulian.cmeb.command;

import com.xunwulian.base.exception.ErrorCodeException;

/**
 * Created by liyankai on 2016/9/10.
 */
public class Invoker {

    private Command command = null;

    public Invoker(Command command) {
        this.command = command;
    }

    public Object action() throws ErrorCodeException {
        return command.execute();
    }
}
